home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93c.txt
/
000052_icon-group-sender _Mon Sep 13 14:17:05 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-02-02
|
2KB
Received: from owl.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Mon, 13 Sep 1993 09:48:53 MST
Received: by owl.cs.arizona.edu; Mon, 13 Sep 1993 09:48:52 MST
Date: 13 Sep 93 14:17:05 GMT
From: agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!rulway.LeidenUniv.nl!ruls41.LeidenUniv.nl!ruiter@ucbvax.Berkeley.EDU (Jan-Peter de Ruiter)
Organization: Leiden University, Netherlands
Subject: File Scanning revisited
Message-Id: <1993Sep13.141705.21611@rulway.LeidenUniv.nl>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
About a year ago (maybe less) the concept of *file* scanning (as opposed
to *string* scanning) was discussed. Since then I have payed attention,
and I started realizing that the only reason I sometimes do C++ in
text processing is that I have a "sort of file scanner" in C++.
[ For those who do not remember: file scanning is just like string scanning,
with a file (stream of characters) as &subject. Position 0 would then be
end-of-file, for instance. Some problems could arise due to the possible
backtracking, so a clever buffering scheme is needed. Also, devices
without a seek_backwards possibility would have limited backtracking. ]
If Icon would have file scanning, even if somewhat slow, it would
be *v*e*r*y* nice. It just keeps nagging in the back of my head,
this feeling that it belongs in Icon. For instance, my colleage next
door is a C hacker who does all his text processing in C.
I tried to 'convert' him to Icon, but he soon stopped because doing Icon
he didn't like the line-by-line approach of Icon.
So my questions are:
1. Has the implementation of file scanning been discussed in Icon circles?
2. Do other Icon programmers agree that file scanning is a "must"?
Greetings,
Jan de Ruiter
University of Leiden
Dept. of Experimental Psychology
Netherlands